<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="Entity.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>学生信息管理</title>
</head>
<body>
	<!-- <link href="css/administratorPage.css" rel="stylesheet" type='text/css' /> -->
	<link rel="stylesheet"
		href="<%=request.getContextPath()%>/css/administratorPage.css"
		type="text/css"></link>
	<div class="header">
		<font size='6' color="#FF0000"><br />&emsp;&emsp;&emsp;学生信息管理</font>
	</div>
	<form action="JSP_administrator/student_Search_Result.jsp"
		method="post" name="student_search_form">
		<input style="float: right" type="submit" value="搜索" /> <input
			type="text" name="studentNo" style="float: right" />
	</form>
	<table align="center" width="1300" border="1" class="mytable">
		<tr align="center">
			<td align="center" colspan="11">
				<h2>所有学生信息</h2>
			</td>
		</tr>
		<tr align="center">
			<td><b>学号</b></td>
			<td><b>姓名</b></td>
			<td><b>性别</b></td>
			<td><b>学院</b></td>
			<td><b>专业</b></td>
			<td><b>班级</b></td>
			<td><b>身份证号</b></td>
			<td><b>密码</b></td>
			<td><b>电话</b></td>
			<td colspan="2"><a href="JSP_administrator/add_Student.jsp"
				style="color: #FFFFFF; text-decoration: none">添加学生</a></td>
		</tr>
		<%-- <c:forEach items="${allStudents }" var="sas">
			<tr>
				<td>${sas.studentNo }</td>
				<td>${sas.studentName }</td>
				<td>${sas.sex }</td>
				<td>${sas.dept }</td>
				<td>${sas.major }</td>
				<td>${sas.studentClass }</td>
				<td>${sas.studentId }</td>
				<td>${sas.pwd }</td>
				<td>${sas.tel }</td> --%>
		<%
			List<Student> slist = new ArrayList<Student>();
			if (session.getAttribute("searchResultStudent_session") != null) {
				slist = (List<Student>) request.getAttribute("searchResultStudent_session");
			}
			for (Student stu : slist) {
		%>
		<tr align="center">
			<td><%=stu.getStudentNo()%></td>
			<td><%=stu.getStudentName()%></td>
			<td><%=stu.getSex()%></td>
			<td><%=stu.getDept()%></td>
			<td><%=stu.getMajor()%></td>
			<td><%=stu.getStudentClass()%></td>
			<td><%=stu.getStudentId()%></td>
			<td><%=stu.getPwd()%></td>
			<td><%=stu.getTel()%></td>
			<%
				}
			%>
			<%-- 		<%
			List<Student> slist = (List<Student>) request.getAttribute("slist");
		
			for (Student stu:slist) {
		%>
		<tr align="center">
			<td><%=stu.getStudentNo()%></td>
			<td><%=stu.getStudentName()%></td>
			<td><%=stu.getSex()%></td>
			<td><%=stu.getDept()%></td>
			<td><%=stu.getMajor()%></td>
			<td><%=stu.getStudentClass()%></td>
			<td><%=stu.getStudentId()%></td>
			<td><%=stu.getPwd()%></td>
			<td><%=stu.getTel()%></td> --%>
			<td><a
				href="/UniversityResourceSystem/StudentsInformationPageServlet?opttype=delete&&studentNo=${sas.studentNo }"
				style="text-decoration: none">删除</a></td>
			<td><a
				href="/UniversityResourceSystem/StudentsInformationPageServlet?opttype=alter&&studentNo=${sas.studentNo }"
				style="text-decoration: none">修改</a></td>
		</tr>
		<%-- </c:forEach> --%>
		<%-- &&studentName=<%=stu.getStudentName()%>
			&&sex=<%=stu.getSex()%>
			&&dept=<%=stu.getDept()%>
			&&major=<%=stu.getMajor()%>
			&&studentClass=<%=stu.getStudentClass()%>
			&&studentId=<%=stu.getStudentId()%>
			&&pwd=<%=stu.getPwd()%>
			&&tel=<%=stu.getTel()%>" --%>
		</tr>
		<%-- <%
			}
		%>
		<tr>
		<td align="center" colspan="11"><%=request.getAttribute("bar")%>
		</td>
		</tr> --%>
	</table>
	<!-- <div class="foot">
				<font color="white">上海电力大学 吴林春 20161946</font>		
		</div> -->
</body>
</html>